<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>易商通运营平台</title>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.form.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
    <link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" id="skin" prePath="__PUBLIC__/"/>
    <link rel="stylesheet" type="text/css" id="customSkin"/>


    <link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css"/>
    <script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>

    <!-- 表单验证start -->
    <script src="__PUBLIC__/libs/js/form/validationRule.js" type="text/javascript"></script>
    <script src="__PUBLIC__/libs/js/form/validation.js" type="text/javascript"></script>
    <!-- 表单验证end -->
    <style>body {
        background-color: #dbeefd
    }</style>
    <script>
        $(function () {
            var editor;
            KindEditor.ready(function (K) {
                editor = K.create('textarea[name="content"]', {
                    allowFileManager: true,
                    autoHeightMode: true,
                    afterCreate: function () {
                        this.loadPlugin('autoheight');
                    }
                });
            });
        })
        function checkTitle() {
            $.post('__URL__/checkphone', {'title': $('#telephone').val()},
                    function (data) {
                        // $('#result').html(data.info).show();
                        $('#result').html(data.info).show();
                    }, 'json');
        }

        function checkfield(field,inputname)
        {
            var fieldval=$("#"+inputname).val();
            if(undefined==fieldval) fieldval="";
            txt = field+"="+fieldval;
            $.post("{:U('validate')}", txt,
                    function(data,status){
                        alert(data);
                        $('#info').html("haha");
                        $('#info').html(data);

                    });
        }

    </script>
</head>
<body>


<form method="post" action="__URL__/addproject">

    <span id="info" class="red"></span>

    <table class="tableStyle">
        <tr>
            <td align="right">公司名：</td>
            <td>{$custinfo["company"]}</td>
        </tr>
        <tr>
            <td align="right">联系人：</td>
            <td>{$custinfo["cname"]}</td>
        </tr>
        <tr>
            <td align="right">联系电话：</td>
            <td>{$custinfo["tel"]}</td>
        </tr>
        <tr>
            <td align="right">QQ：</td>
            <td>{$custinfo["qq"]}</td>
        </tr>
        <tr>
            <td align="right"> 地址：</td>
            <td>{$custinfo["address"]}</td>
        </tr>
        <tr valign="top">
            <td align="right"> 项目价格：</td>
            <td><input name="price" type="text" value="" style="width:200px;"/>
                <span class="red">*</span>
            </td>
        </tr>
        <tr>
            <td align="right"> 业务类型：</td>
            <td>
                <select name="type">
                    <volist name="list" id="vo">
                        <option value="{$vo['id']}">{$vo["name"]}</option>
                    </volist>
                </select>
            </td>
        </tr>

        <tr>
            <td align="right">备案</td>
            <td><input type="radio" name="beian" value="1">是
                <input type="radio" name="beian" value="0" checked="checked">否
            </td>
        </tr>
        <tr valign="top">
            <td align="right"> 关键词：</td>
            <td><textarea name="keyword" style="width:200px;height:80px;"></textarea>
                (一行一个关键词,)
            </td>
            <span class="red">*</span>
        </tr>

        <tr>
            <td align="right"> 网站资料：</td>
            <td>
                <textarea name="content" style="width:800px;height:400px;visibility:hidden;"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value=" 提 交 "/>
                <input name="custid" type="hidden"  value="{$custinfo['id']}" />
            </td>
        </tr>
    </table>
</form>


</body>
</html>
